﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SDSystem.Models;
using Ext.Net;
using Ext.Net.MVC;
using System.Linq.Dynamic;

namespace SDSystem.Controllers
{
    public class TypeOfBusinessController : Controller
    {
        //
        // GET: /TypeOfBusiness/
        private SDSystemEntities db = new SDSystemEntities();
        
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult BindingStore()
        {
            var result = from tb in db.TypeOfBusinesses
                         select new
                         {
                             tb.BusinessId,
                             tb.BusinessName,
                             tb.SICcode,
                         };
            return this.Store(result.ToList());
        }

    }
}
